package com.xrj4j.k_tally.model

import java.io.Serializable


class IconType(
    val name: String,
    val icon: Int,
    val iconSelected: Int,
    val kind: Int
){
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is IconType) return false

        if (name != other.name) return false
        if (icon != other.icon) return false
        if (iconSelected != other.iconSelected) return false
        if (kind != other.kind) return false

        return true
    }

    override fun hashCode(): Int {
        var result = name.hashCode()
        result = 31 * result + icon
        result = 31 * result + iconSelected
        result = 31 * result + kind
        return result
    }

    override fun toString(): String {
        return "IconType(name='$name', icon=$icon, iconSelected=$iconSelected, kind=$kind)"
    }


}